<?php
class Subcategorymanager_Data_Updatesubcategorycontentvalues implements Subcategorymanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "UPDATE subcategory_content_values SET subcategory_content_values.subcategory_title = '".$variables['post']['subcategory_title']."', subcategory_content_values.subcategory_description = '".$variables['post']['subcategory_description']."', subcategory_content_values.subcategory_content = '".$variables['post']['subcategory_content']."', subcategory_content_values.image = '".$variables['post']['subcategory_image']."' WHERE subcategory_content_values.subcategory_name = '".$variables['post']['subcategory_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
}
